home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™94 / Miscellaneous / Randy Thelen / ThreadedBrot / Interfaces / AppleEventHandling.h next >
Encoding:
C/C++ Source or Header  |  1994-06-26  |  1.5 KB  |  57 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  */
  13.  
  14. #ifndef        _APPLEEVENTHANDLING_
  15. #define        _APPLEEVENTHANDLING_
  16.  
  17. #ifndef        __APPLEEVENTS__
  18. #include    <AppleEvents.h>
  19. #endif
  20.  
  21. #ifndef        __OCESTANDARDMAIL__
  22. #include    <OCEStandardMail.h>
  23. #endif
  24.  
  25. #ifndef        _APPLIB_
  26. #include    "AppLib.h"
  27. #endif
  28.  
  29.  
  30. void            InstallAppleEventHandlers(void);
  31.  
  32. OSErr            CheckAppleEventForMissingParams(AppleEvent *theAppleEvent);
  33.  
  34.  
  35. //    Handlers for the Required Suite:
  36.  
  37. typedef OSErr    (*EachDocumentProcPtr)(LetterDescriptor *aFile);
  38.  
  39. pascal OSErr    HandleOpenApplication(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  40. pascal OSErr    HandleOpenOrPrintDocuments(AppleEvent *theAppleEvent,AppleEvent *reply,EachDocumentProcPtr docProc);
  41. pascal OSErr    HandleQuitApplication(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  42.  
  43. //    Edition Manager:
  44.  
  45. pascal OSErr    HandleSectionRead(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  46. pascal OSErr    HandleSectionWrite(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  47. pascal OSErr    HandleSectionScroll(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  48. pascal OSErr    HandleSectionCancel(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  49.  
  50.  
  51. //    Display Manager:
  52.  
  53. pascal OSErr    HandleDisplayManagerNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  54.  
  55.  
  56. #endif
  57.